//导入 mongoose
import mongoose from 'mongoose'
//创建文档的结构对象
//设置集合中文档的属性以及属性值的类型
let userInfoSchema = new mongoose.Schema({
  name: String,
  age: Number,
  sex: String,
  birthday: String,
  phone: String,
  address: String,
  email: String,
})

//创建模型对象  对文档操作的封装对象
let UserInfoModel = mongoose.model('user_info', userInfoSchema)

//暴露模型对象
export default UserInfoModel
